/*
 * Copyright (C) 2004, Velocityme Partnership
 * NumberString.java
 *
 * Created on 30 August 2004, 02:41
 */

package com.velocityme.www.dto;

/**
 *
 * @author  Robert
 */
public class IntegerString implements java.io.Serializable {
    
    Integer m_integer;
    String m_string;
    
    /** Creates a new instance of NumberString */
    public IntegerString() {
    }
    
    public IntegerString(Integer integer, String string) {
        m_integer = integer;
        m_string = string;
    }
    
    public Integer getInteger() {
        return m_integer;
    }
    
    public void setInteger(Integer integer) {
        m_integer = integer;
    }
    
    public String getString() {
        return m_string;
    }
    
    public void setInteger(String string) {
        m_string = string;
    }
    
    public boolean equals(Object other) {
        if (other instanceof IntegerString) {
            IntegerString oth = (IntegerString)other;
            return m_string.equals(oth.m_string) && m_integer.equals(oth.m_integer);
        }
        return false;
    }
    
}
